package cn.wolfcode.car.business.service;

import cn.wolfcode.car.business.domain.Statement;
import cn.wolfcode.car.common.base.page.TablePageInfo;
import cn.wolfcode.car.common.base.query.QueryObject;

import java.math.BigDecimal;

public interface IStatementService {

    Statement queryById(Long id);

    TablePageInfo<Statement> query(QueryObject qo);

    void save(Statement statement);

    void update(Statement statement);

    void deleteById(Long id);

    void updateAmount(BigDecimal totalAmount, BigDecimal totalQuantity, BigDecimal itemPrice, Long statementId);

    void payStatement(Long id);

    Statement queryAppointmentId(Long appointmentId);
}
